<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th><input type="checkbox" class="checked-all" target="word-id"></th>
            <th><div class="text-left">分类</div></th>
            <th><div class="text-left">关键词</div></th>
            <th>关键词类型</th>
            <th>使用频率</th>
            <th>关键词热度</th>
            <th>状态</th>
            <th>备注</th>
            <th>录入人</th>
            <th>录入时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="item"}
            <tr>
                <td><input type="checkbox" class="word-id" name="word_id[]" value="{$item.word_id}"></td>
                <td class="text-left">{$item.category.name}</td>
                <td class="text-left copy-text used-word" item="{$item.word_id}">{$item.word}</td>
                <td>{$item.type}</td>
                <td>{$item.used}</td>
                <td>{$item.hot}</td>
                <td>
                    {php}$status = $item['status'];{/php}
                    <a href="{:url('save',['word_id'=>$item['word_id'], 'status'=>abs(1-$status)])}" class="ajax-get" msg="0" style="font-size: 16px;">
                        {$status?'<i class="fa fa-unlock"></i>':'<i class="fa fa-lock text-red"></i>'}</a>
                </td>
                <td class="text-left">{$item.remark}</td>
                <td>{$item.admin.nickname}</td>
                <td>{$item.create_time}</td>
                <td><a href="{:url('add',['word_id'=>$item['word_id']])}" class="layui-btn layui-btn-xs layui-btn-normal  ajax-form" title="分类">编辑</a>
                    <a href="{:url('delete',['ids'=>$item['word_id']])}" title="删除" confirm="1" class="layui-btn layui-btn-xs layui-btn-danger ajax-get">删除</a> </td>
            </tr>
        {/volist}
        {empty name="list"}
        <tr>
            <td colspan="11">没有数据</td>
        </tr>
        {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>